
package org.dromara.timemate.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.timemate.domain.DeviceInfo;

import java.util.Date;
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DeviceInfo.class, reverseConvertGenerate = false)
@Data
public class DataIndexBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 穿戴者id
     */
    @NotNull(message = "穿戴者id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long wearerId;

    /**
     * 关联设备id
     */
    @NotNull(message = "关联设备id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long deviceId;

    /**
     * 设备名称
     */
    @NotNull(message = "设备名称不能为空", groups = {AddGroup.class,EditGroup.class})
    private String deviceName;

    /**
     * 设备类型
     */
    @NotNull(message = "设备类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String deviceType;

    /**
     * 采集日期
     */
    private Date recordDay;




}
